package com.example.myapplication.flow

import com.example.myapplication.retrofit.WanandroidServe
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import retrofit2.Retrofit
import javax.inject.Inject

class FlowRepository(var retrofit: Retrofit) {
//    fun getFoo() = Flow<Any> {
//        return@Flow flow {
//            var serve = retrofit.create(WanandroidServe::class.java)
//            serve.login("1", "2")
//            emit(1)
//        }
//    }

}